home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1168 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.4 KB

  1. Subject: Re: load average patches for MiNT 1.10 + patches
  2. Date: Mon, 7 Mar 94 22:42:24 CET
  3. From: Juergen Lock <nox@jelal.north.de>
  4. In-Reply-To: <23994.9403051221@earth.ox.ac.uk>; from "Stephen Usher" at Mar 5, 94 12:21 pm
  5. Message-Id: <9403072142.AA00932@jelal.north.de>
  6.  
  7. Stephen Usher writes:
  8.  
  9. > The routine which is called once a second traverses the process table
  10. > testing for processes on the run queue, adds them up, subtracts three values
  11. > taken from three arrays after scaling them with a shift and a divide, places
  12. > the total number of processes into three arrays, increments three pointers,
  13. > scales the current load with a shift and three divides and adds the value
  14. > the loadaverage values. Oh and it increments the uptime counter too.
  15. > Most of the time in this routine is taken traversing the process table, and
  16. > this would happen once a second whatever way I implemented loadaverages.
  17. > >From experiments, the increase in overhead is so little that I couldn't
  18. > measure the speed difference on my 520STM with 2.5MB RAM. (This is not my
  19. > development system.. I use my TT and Sun 3/80 for that.)
  20.  
  21.  sure, just one way the ST would lose serial data easier and the other
  22. not.  the increase in cpu load itself is no problem, only the time it
  23. runs at level 6 longer...
  24.  
  25.  cheers
  26.     Juergen
  27. -- 
  28. J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
  29.                                 ...ohne Gewehr
  30. PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA 
  31.